package com.sunlake.spring.main.model.course.vo;

import java.math.BigDecimal;
import java.util.List;

import lombok.Data;

/**
 * 课程详情
 */
@Data
public class CourseDetailVO {
    private String id;
    private String title;
    private String headline;
    private String coverImage;
    private String instructorName;
    private String instructorTitle;
    private String instructorAvatar;
    private String difficulty;
    private Integer lessonsCount;
    private String durationLabel;
    private BigDecimal price;
    private String priceLabel;
    private String originalPriceLabel;
    private String description;
    private List<String> audience;
    private List<String> learningHighlights;
    private List<CourseOutlineSectionVO> outline;
    private List<CourseReviewVO> reviews;
    private CoursePreviewVO previewMedia;

    @Data
    public static class CourseOutlineSectionVO {
        private String id;
        private String title;
        private String summary;
        private List<CourseOutlineLessonVO> lessons;
    }

    @Data
    public static class CourseOutlineLessonVO {
        private String id;
        private String title;
        private String duration;
        private String mediaUrl;
    }

    @Data
    public static class CourseReviewVO {
        private String id;
        private String reviewer;
        private Integer rating;
        private String highlight;
        private String content;
        private String createdAt;
    }

    @Data
    public static class CoursePreviewVO {
        private String type;
        private String url;
        private String duration;
    }
}
